package day07HomeWork;/*-
Animal类：name、age、color、Animal(参)、drink()、abstract eat()
wim接口：swim()
Dog类：继承Animal、实现Swim接口，重写eat()、lookHome()、重写swim()
Chick类：继承Animal，重写eat()、layEggs()
Fish类：继承Animal、实现Swim接口，重写eat()、重写swim()
wimTest类：创建对象测试
     */
public abstract class Animal {
    String name;
    int age;
    String color;
    Animal(){

    }
    Animal(String name,int age,String color){
        this.name = name;
        this.age = age;
        this.color = color;
    }
    void drink() {
        System.out.println(color + "色的" + age + "岁的" + name + "正在喝水...");
    }
    abstract void eat();
}
